import request from "@/utils/request";
import {APP_ID} from "@/config/app";

const baseUrl = `/wx/ma/user`

/**
 * 获取用户绑定手机号信息
 * @param data
 * @returns {*}
 */
export function getUserPhoneNumber (data) {
	return request.get(`${baseUrl}/phone?key=${data.key}`,{},{ noAuth : true })
}
/**
 * 获取省份
 * @returns {*}
 */
export function getProvince() {
	return request.get('/tax/listProvince')
}

export function login (data) {
	return request.post(`${baseUrl}/login`, data, { noAuth : true })
}
/**
 * 字典数据查询
 * @param params
 * @returns {Promise<*>}
 */
export function searchDicListApi(params) {
	return request.get(`/dict/data/getDictTypes/` + params);
}
/**
 * 查询银行列表
 * @returns {Promise<*>}
 */
export function bankListApi() {
	return request.get('/product/bankList')
}